
# 设置源文件目录
set(SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/source")

# 递归搜索所有 .h 和 .cpp 文件
file(GLOB_RECURSE SOURCE_FILES
    "${SOURCE_DIR}/*.h"
    "${SOURCE_DIR}/*.cpp"
)

# 打印找到的源文件（可选）
# message(STATUS "Found source files: ${SOURCE_FILES}")


qt_add_executable(${Application_Name}
    Source/main.cpp
)

qt_add_qml_module(${Application_Name}
    URI ${Application_Name}
    VERSION 1.0
    QML_FILES
        QML/App.qml
        QML/Window/MainWindow.qml
        QML/Page/P_Plan_MainPage.qml
        QML/Page/P_Plan_Adding.qml
        QML/Component/C_MainWindow_MainBar.qml
        QML/Component/C_G_Content.qml
        QML/Component/C_Plan_MainBar.qml

)

target_link_libraries(${Application_Name}
        PRIVATE Qt6::Quick AdyUI
)

message("${CMAKE_BINARY_DIR}/Application  " ${CMAKE_BINARY_DIR}/Application/AdyUI)
install(DIRECTORY ${AdyUI_LIB_DIR}
    DESTINATION ${CMAKE_BINARY_DIR}/Application/AdyUI
)
